package org.ly.controller;

import org.ly.service.CmdbHostService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RefreshCmdbHost {

    private final CmdbHostService cmdbHostService;

    public RefreshCmdbHost(CmdbHostService cmdbHostService) {
        this.cmdbHostService = cmdbHostService;
    }

    @RequestMapping(value = "/refresh")
    public void refresh() {
        cmdbHostService.cmdb2local();
    }
}
